package Mangos::DB::Mangos::AchievementCriteriaRequirement;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'achievement_criteria_requirement',

    columns => 
    [
        criteria_id => { type => 'integer', not_null => 1 },
        type        => { type => 'integer', not_null => 1 },
        value1      => { type => 'integer', default => '0', not_null => 1 },
        value2      => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'criteria_id', 'type' ],
);

1;

package Mangos::DB::Mangos::AchievementCriteriaRequirement::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::AchievementCriteriaRequirement' }

__PACKAGE__->make_manager_methods('achievement_criteria_requirement');

1;
